﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ECOCPanel.ascx.cs" 
Inherits="UILGestion.Control.ECOCPanel" %>


     <%@ Register Assembly="CustomControls" Namespace="CustomControls" TagPrefix="cc1" %>
<script src="../Scripts/controlGrid.js" type="text/javascript"></script>
<link href="../css/main.css" rel="stylesheet" type="text/css" />
 <script type="text/javascript">
     function SelectAll(frm, id) {

         var frm = document.getElementById("itemPlaceHolderContainer");
         for (i = 1; i < frm.rows.length; i++) {
             var checkbox = frm.rows[i].cells[0].childNodes[0];
             if (checkbox != null)
                 checkbox.checked = document.getElementById(id).checked;
         }
     };
    </script>
      <asp:Panel ID="Panel1" runat="server" CssClass="Heading secTitle AreaHeading ms-crm-List-Header " >
                Orden Compra Sin Comparativo
                </asp:Panel>
                 <asp:Panel ID="Panel2" runat="server"  class="ms-crm-Form-Body" >
                     <input id="idObra" type="hidden"  runat="server"/>
                     <input id="idEstructuraCosto" type="hidden" runat="server"/>
                     <input id="idRecursoOCList" type="hidden" runat="server"/>
                     
                     <table class="ui-accordion" style="background-color:White">
                         <tr>
                             <td align="right" valign="top" width="150px">
                                 Estructura Costo:</td>
                             <td>
                                 <asp:Label ID="estructuraCostoLBL" runat="server"></asp:Label>
                             </td>
                             <td>
                                 &nbsp;</td>
                             <td>
                                 &nbsp;</td>
                         </tr>
                         <tr>
                             <td align="right" valign="top" width="150px">
                                 Proveedor:</td>
                             <td>
                                 <asp:Label ID="proveedorLBL" runat="server"></asp:Label>
                             </td>
                             <td>
                                 &nbsp;</td>
                             <td>
                                 &nbsp;</td>
                         </tr>
                         <tr>
                             <td align="right" valign="top" width="150px">
                                 Moneda:</td>
                             <td width="250px">
                                 <asp:Label ID="monedaLBL" runat="server"></asp:Label>
                             </td>
                             <td>
                                 &nbsp;</td>
                             <td>
                                 &nbsp;</td>
                         </tr>
                     </table>
                     <br />

                
<asp:ListView ID="ListView1" runat="server" OnDataBound="ListView1_DataBound"   ClientIDMode="Static"  
    DataKeyNames="idInternal" onitemdatabound="ListView1_ItemDataBound">
    <LayoutTemplate>
        <table id="itemPlaceHolderContainer" border="0" runat="server">
            <tr id="Tr1" runat="server"  class="Heading secTitle AreaHeading ms-crm-List-Header">
             <th>
            
           <asp:CheckBox runat="server" ID="chkSelectAll" ClientIDMode="Static" onclick="SelectAll('ListView1','chkSelectAll')" />
            </th>
                <th id="Th1" runat="server">
                    Num. Doc.
                        </th>
                <th id="Th5" runat="server">
                   Fecha
                </th>
                <th id="Th3" runat="server">
                   Proveedor
                </th>
                 <th id="Th4" runat="server">
                    Sub Total
                </th>
                <th id="Th2" runat="server">
                    IGV 
                </th>
                <th id="Th6" runat="server">
                    Total
                </th>
            </tr>
            <tr id="itemPlaceholder" runat="server">
            </tr>
        </table>



    </LayoutTemplate>
    <ItemTemplate>
        <tr style='background-color: <%# (Container.DataItemIndex % 2 == 0)?"#eee":"#fff" %>'>
            <td>
         
             <asp:CheckBox runat="server" ID="chkEmployeeSelector"  />
         
                
            </td>
        
           <td width="55px" >
                    <%# Eval("numDocumento")%> <br />
            </td>
           <td width="55px" >
                    <%# Eval("fechaEmisionStr")%> <br />
            </td>
             <td width="350px" >
                    <%# Eval("proveedor")%> <br />
            </td>
           
     <td width="100px"  align="right">
                    <%# Eval("totalMon")%> <br />
            </td>
     
         <td width="100px"  align="right">
                    <%# Eval("IGVTotalMon")%> <br />
            </td>
            <td width="100px"  align="right">
                    <%# Eval("subTotalMon")%> <br />
            </td>
        </tr>
    </ItemTemplate>
    <EmptyDataTemplate>
        <table id="Table1" runat="server" style="">
            <tr>
                <td>
                    <h2 style="color: Red ; font-size:small">
                  
                        No existe Informacion.</h2>
                </td>
            </tr>
        </table>
    </EmptyDataTemplate>
</asp:ListView>


  
</asp:Panel>


